package cn.school.prevention.entity;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_prevention_scope")
public class Scope extends BaseVO {

    private static final long serialVersionUID = 8571636916467898290L;
    /**
     * 主键id
     */

    @TableId
    @ApiModelProperty(value = "id", hidden = false)
    private Long id;

    /**
     * 防控信息表ID
     */
    @ExcelProperty("防控信息表ID")
    @ApiModelProperty(value = "防控信息表ID", required = false)
    private String piId;

    /**
     * 班级ID
     */
    @ExcelProperty("班级ID")
    @ApiModelProperty(value = "班级ID", required = false)
    private String classId;

    /**
     * 班主任ID
     */
    @ExcelProperty("班主任ID")
    @ApiModelProperty(value = "班主任ID", required = false)
    private String teacherId;

    /**
     * 是否已经反馈
     */
    @ExcelProperty("是否已经反馈")
    @ApiModelProperty(value = "是否已经反馈", required = false)
    private String isFeedback;

    /**
     * 待反馈日期
     */
    @ExcelProperty("待反馈日期")
    @ApiModelProperty(value = "待反馈日期", required = false)
    private String todoFeedbackDate;

    /**
     * 实际反馈时间
     */
    @ExcelProperty("实际反馈时间")
    @ApiModelProperty(value = "实际反馈时间", required = false)
    private String feedbackTime;

    /**
     * 是否有效 0-无效 1-有效
     */
    @ExcelProperty("是否有效")
    @ApiModelProperty(value = "是否有效", required = false)
    private String status;

    @TableField(exist = false)
    private String title;

    @TableField(exist = false)
    private String className;

    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private Integer pageSize;



    @TableField(exist = false)
    private List<FeedBack> feedBacks;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
